package create.singleton;

public class Client {
    public static void main(String[] args) {
        SingleTon singleTon = SingleTon.getSingleTon();
        singleTon.method();
        SingleTon singleTon2 = SingleTon.getSingleTon();
        //同一个对象，地址一致
        System.out.println(singleTon);
        System.out.println(singleTon2);


    }
}
